﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.ComponentModel;

namespace Kevin.Controls
{
    /// <summary>
    /// 弹出项
    /// </summary>
    public class PopUpField : DataField
    {
        public PopUpField()
        {
            base.BindType = BindType.PopUp;
        }
        /// <summary>
        /// 数据项
        /// </summary>
        public string FieldName
        {
            get;
            set;
        }
        /// <summary>
        /// Grid列显示的字符串，如果不设置则显示绑定的数据项
        /// </summary>
        public string ItemText
        {
            get;
            set;
        }

        /// <summary>
        /// 弹出页面的地址
        /// </summary>
        public string NavigateURLString
        {
            get;
            set;
        }
        /// <summary>
        /// 弹出页面所需的参数值
        /// </summary>
        public string FormatFields
        {
            get;
            set;
        }

        /// <summary>
        /// 弹出窗的标题
        /// </summary>
        [DefaultValue("神州数码 - 弹出窗口")]
        public string DialogTitle
        {
            get;
            set;
        }
        /// <summary>
        /// 弹出窗的大小 - 宽度
        /// </summary>
        [DefaultValue(400)]
        public int DialogWidth
        {
            get;
            set;
        }
        /// <summary>
        /// 弹出窗的大小 - 高度
        /// </summary>
        [DefaultValue(600)]
        public int DialogHeight
        {
            get;
            set;
        }
    }

}
